import request from '@/utils/request'

// 查询完工汇报列表
export function listDone(query) {
  return request({
    url: '/mes/mes/done/list',
    method: 'get',
    params: query
  })
}

// 查询完工汇报详细
export function getDone(jobDoneUuid) {
  return request({
    url: '/mes/mes/done/' + jobDoneUuid,
    method: 'get'
  })
}

// 新增完工汇报
export function addDone(data) {
  return request({
    url: '/mes/mes/done',
    method: 'post',
    data: data
  })
}

// 修改完工汇报
export function updateDone(data) {
  return request({
    url: '/mes/mes/done',
    method: 'put',
    data: data
  })
}

// 删除完工汇报
export function delDone(jobDoneUuid) {
  return request({
    url: '/mes/mes/done/' + jobDoneUuid,
    method: 'delete'
  })
}
